package com.shangxian.giveithome.entity.seekhelp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.shangxian.giveithome.entity.Mechanism;
import com.shangxian.giveithome.entity.UserData;
import com.shangxian.giveithome.entity.UserSimple;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SeekHelpVO {

    private Long id;

    /**
     * 协会id
     **/
    private Mechanism meId;

    /**
     * 协会信息
     **/
    private Mechanism mechanism;

    /**
     * 用户ID
     **/
    private UserData usId;

    /**
     * 用户
     **/
    @ApiModelProperty(name = "求助用户信息")
    private UserSimple userSimple;

    /**
     * 求助类型 求助类型 0流浪求助1请求募捐2送养宠物
     */
    private int type;

    /**
     * 类型名称
     */
    private String typeLabel;

    /**
     * 图片id
     **/
    private Long imgId;

    /**
     * 图片路径
     **/
    private String imgPath;

    /**
     * 募捐图片id
     **/
    private Long donationImgId;

    /**
     * 募捐图片路径
     **/
    private String donationImgPath;

    /**
     * 求助内容
     **/
    private String helpContent;
    /**
     * 机构备注
     **/
    private String meRemark;

    /**
     * 状态  0待审核 1通过 2不通过
     **/
    private Integer status;

    /**
     * 创建时间
     **/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
}
